<script setup>
import { reactive } from 'vue'

// reactive 把对象变成响应式数据
const message = reactive({ name: 'hello' })

</script>
<template>
  <h1>你好</h1>
  <h2>{{ message.name }}</h2>
  <button @click="message.name='你好'">触发Fn函数</button>
</template>

<style>
</style>
